﻿@model SnippetBox.Web.Areas.Manage.Models.UserModel
    <h3 class="formGroupHeader">User</h3>
    
    <div class="formRow clearfix">
        <div class="formLabel">
            <h4>Username</h4>
        </div>
        <div class="formElement">
            @Html.EditorFor(model => model.User.Username)
            @Html.ValidationMessageFor(model => model.User.Username)
        </div>
    </div>
    
    <div class="formRow clearfix">
        <div class="formLabel">
            <h4>Password</h4>
            <p>Enter a password to set a new one</p>
        </div>
        <div class="formElement">
            @Html.PasswordFor(model => model.Password, new { autocomplete = "off" })
            @Html.ValidationMessageFor(model => model.Password)
        </div>
    </div>
    
    <div class="formRow last clearfix">
        <div class="formLabel">
            <h4>Role</h4>
        </div>
        <div class="formElement">
            @Html.DropDownListFor(m => m.User.Role, Model.Roles)
            @Html.ValidationMessageFor(model => model.User.Role)
        </div>
    </div>    
    
    
    <h3 class="formGroupHeader">User Information</h3>

    <div class="formRow clearfix">
        <div class="formLabel">
            <h4>Email address</h4>
        </div>
        <div class="formElement">
            @Html.EditorFor(model => model.User.Email)
            @Html.ValidationMessageFor(model => model.User.Email)
        </div>
    </div>   
    
    <div class="formRow clearfix">
        <div class="formLabel">
            <h4>Website</h4>
        </div>
        <div class="formElement">
            @Html.EditorFor(model => model.User.Website)
            @Html.ValidationMessageFor(model => model.User.Website)
        </div>
    </div>   
    
    <div class="formRow clearfix">
        <div class="formLabel">
            <h4>Twitter</h4>
            <p>Please enter the @@username</p>
        </div>
        <div class="formElement">
            @Html.EditorFor(model => model.User.TwitterUsername)
            @Html.ValidationMessageFor(model => model.User.TwitterUsername)
        </div>
    </div>   